package net.niufei.packet;

import java.net.SocketAddress;

import net.niufei.DataBuffer;
import net.niufei.Packet;

public class DelegatePacket implements Packet {
	private final Packet delegate;
	
	public DelegatePacket(Packet delegate) {
		this.delegate = delegate;
	}

	
	public Packet getDelegate() {
		return delegate;
	}
	
	
	@Override
	public SocketAddress getAddress() {
		return delegate.getAddress();
	}
	

	@Override
	public DataBuffer getContent() {
		return delegate.getContent();
	}

	
	public String toString() {
		return delegate.toString();
	}
}
